<html>
<head>
	
	<?php
		require 'ConectarBanco.class.php';
		require 'Logar.class.php';

		$banco = new ConectarBanco();
		$banco->conectarBanco();
		/*$logar = new Logar();
		$logar->logar();*/
	?>
	
	
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title> ::You Can:: </title>

<!--  Código CSS	-->
	
	<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
	<style type="text/css">
.style1 {
	color: #E7E4E4;
}
.style2 {
	font-size: large;
}
.style4 {
	font-size: small;
}
.style5 {
	font-size: small;
	color: #FF6600;
}
.style6 {
	color: #FF6600;
}
.style8 {
	font-size: xx-small;
}
</style>

<!-- FIM Código CSS -->

<!-- Código JAVASCRIPT -->

<script language="javascript">

	function validarForm(){
	
          d = document.login;
		  
           if (d.matricula.value == ""){
                     alert("O campo " + d.matricula.name + " deve ser preenchido!");
                     d.matricula.focus();
                     return false;
           }else  
           if (d.senha.value == ""){
                   alert("O campo " + d.senha.name + " deve ser preenchido!");
                   d.senha.focus();
                   return false;

         }
	}//validarForm();


</script>

<!-- FIM do Código JAVASCRIPT -->
	
	<base target="middle" />
	
</head>

<body>

<!-- Corpo do Site -->

<div id="outer">
  <div id="wrapper" style="width: 765px; height: 604px">
		<div id="header">
			<h1><span lang="pt">You can</span></h1>
			<p><span lang="pt">Sistema de Controle Acadêmico</span></p>
		</div>
		<div id="nav" style="left: -35px; top: 0px; width: 795px;">
			<div id="head"></div>
			<div id="head-pip"></div>
			<ul style="left: 115px; top: 0px">
				<li id="m1"><span lang="pt"><a href="index.php">Home</a></span></li>
				<li id="m2"><span lang="pt"><a href="addaluno.php">Cadastrar Aluno</a></span></li>
				<li id="m3"><span lang="pt"><a href="addprofessor.php">Cadastrar Professor</a></span></li>
				<li id="m4"><span lang="pt"><a href="contatos.php">Contatos</a></span></li>

			</ul>
			<div id="search">
				<h2 style="width: 1px"></h2>
				<h2 style="width: 8px">&nbsp;</h2>
				<h2>&nbsp;</h2>
				<h2><span lang="pt" class="style2">Login</span></h2>
				
<!-- Início do Fomulário -->				
				<form name="login" method="post" action="Logar.class.php" onSubmit="return validarForm()">
					<span lang="pt"><span class="style5">Matrícula:</span> </span>
					<input type="text" class="text" name="matricula" id="matricula" style="width: 131px" /><span class="style8"><br />
					</span><br />
					<span lang="pt" class="style4"><span class="style6">Senha:&nbsp;&nbsp;
					</span>&nbsp;
					<input type="text" class="text" name="matricula" id="matricula" style="width: 131px" />&nbsp;
					</span> <input type="submit" name="logar" value="Entrar &gt; &gt;" id="logar" class="submit" /><br />
					&nbsp;
				</form>
<!-- Fim do Fomulário -->			

<!-- Fim do Corpo do Site -->				
			</div>
		</div>
	<p>&nbsp;</p>
		<p>&nbsp;</p>
		<div id="copyright">
          <div id="copyright-left"> Copyright &copy; 2009, www.youcan.com.br. All right reserved </div>
    </div>
		<p><br />
		    <span lang="pt">
            <br />
	          </span>	            </p>
  </div>
</div>

</body>
</html>
